VERSION 5.00
Begin VB.Form frmCommands 
   BackColor       =   &H00000000&
   ClientHeight    =   5175
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   9735
   Icon            =   "frmCommands.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   ScaleHeight     =   5175
   ScaleWidth      =   9735
   StartUpPosition =   2  'CenterScreen
   Begin VB.Frame Frame1 
      BackColor       =   &H00000000&
      Caption         =   "Your Options"
      ForeColor       =   &H00FFFF00&
      Height          =   1455
      Left            =   0
      TabIndex        =   6
      Top             =   3720
      Width           =   2775
      Begin VB.CommandButton addcmd 
         Caption         =   "A&dd New command"
         Height          =   435
         Left            =   120
         TabIndex        =   9
         Top             =   240
         Width           =   2535
      End
      Begin VB.CommandButton removecmd 
         Caption         =   "&Remove Selected"
         Height          =   315
         Left            =   120
         TabIndex        =   8
         Top             =   1080
         Width           =   2535
      End
      Begin VB.CommandButton renamecmd 
         Caption         =   "Re&name Selected"
         Height          =   315
         Left            =   120
         TabIndex        =   7
         Top             =   720
         Width           =   2535
      End
   End
   Begin VB.CommandButton closecmd 
      Caption         =   "&Close"
      Height          =   315
      Left            =   7080
      TabIndex        =   4
      Top             =   4800
      Width           =   2655
   End
   Begin VB.CommandButton applycmd 
      Caption         =   "&Apply Command/s"
      Height          =   315
      Left            =   2880
      TabIndex        =   3
      Top             =   4800
      Width           =   4095
   End
   Begin VB.TextBox txtCommands 
      BackColor       =   &H00000000&
      ForeColor       =   &H00FFFFFF&
      Height          =   4335
      Left            =   2760
      MultiLine       =   -1  'True
      TabIndex        =   2
      Top             =   360
      Width           =   6975
   End
   Begin VB.ListBox lstCmd 
      BackColor       =   &H00000000&
      ForeColor       =   &H00C0C000&
      Height          =   3375
      Left            =   0
      TabIndex        =   0
      Top             =   360
      Width           =   2775
   End
   Begin VB.Label Label2 
      Alignment       =   2  'Center
      BackColor       =   &H00000000&
      Caption         =   "Command Editor / Creator:"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H0000FFFF&
      Height          =   255
      Left            =   5040
      TabIndex        =   5
      Top             =   120
      Width           =   2295
   End
   Begin VB.Label Label1 
      Alignment       =   2  'Center
      BackColor       =   &H00000000&
      Caption         =   "Current Commands:"
      BeginProperty Font 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H0000FFFF&
      Height          =   255
      Left            =   120
      TabIndex        =   1
      Top             =   120
      Width           =   2295
   End
End
Attribute VB_Name = "frmCommands"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim cmdFSO As Object

Private Sub addcmd_Click()

  newCmd = InputBox("What is the name of the new command?", "VectorNet Bot Command Editor")
  lstCmd.AddItem newCmd

End Sub

Private Sub applycmd_Click()

  finalizeCommand = Replace(txtCommands.text, vbNewLine, "%n")
  dicCommands.Item(lstCmd.List(lstCmd.ListIndex)) = finalizeCommand
  MsgBox "Command saved!", vbOKOnly

End Sub

Private Sub closecmd_Click()

frmCommands.Hide

End Sub

Private Sub Form_Load()

Me.Caption = "VectorNet Bot v2.2 | By: Plugins -- Command Editor"

  For Each key In dicCommands.keys
    lstCmd.AddItem key
  Next

End Sub

Private Sub lstCmd_Click()
  
  getCmd = dicCommands.Item(lstCmd.List(lstCmd.ListIndex))
  getCmd = Replace(getCmd, "%n", vbNewLine)

  txtCommands.text = getCmd
  
End Sub

Private Sub removecmd_Click()

  dicCommands.Remove (lstCmd.List(lstCmd.ListIndex))
  lstCmd.RemoveItem (lstCmd.ListIndex)

End Sub

Private Sub renamecmd_Click()

  getContents = dicCommands.Item(lstCmd.List(lstCmd.ListIndex))
  dicCommands.Remove (lstCmd.List(lstCmd.ListIndex))

  rename = InputBox("What do you want to rename the command to?", "VectorNet Bot Command Editor")

  lstCmd.List(lstCmd.ListIndex) = rename
  dicCommands.Item(rename) = getContents
  
End Sub

Private Sub savecmd_Click()
    
  finalizeCommand = Replace(txtCommands.text, vbNewLine, "%n")
  dicCommands.Item(lstCmd.List(lstCmd.ListIndex)) = finalizeCommand
  MsgBox "Command saved!", vbOKOnly
  
End Sub
